package org.example.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Aircraft {
    private Integer id;//id
    private Integer origin;//出发地
    private Integer destination;//目的地
    @TableField(exist = false)
    private String name;//目的地名称
    @TableField(value = "departure_date")
    private LocalDate date;//出发日期
    private LocalTime departureTime;//出发时间
    private LocalTime arrivalTime;//到达时间
    private Integer airlineCompany;//航空公司
    private String flyAirport;//起飞机场
    private String landAirport;//落地机场
    private String position;//仓位
    private Integer snack;//小食
    private Double price;//价格
    private String flight;//航班
    private Integer seatLeft;
    @TableField(exist = false)
    private String week;//星期
}
